Skip to content

[dependency]: Bump next-i18next from 15.4.3 to 16.0.4 in /explorer/frontend#2053

Closed
dependabot[bot] wants to merge 1 commit intodevfrom
dependabot/npm_and_yarn/explorer/frontend/dev/next-i18next-16.0.4
Closed

[dependency]: Bump next-i18next from 15.4.3 to 16.0.4 in /explorer/frontend#2053
dependabot[bot] wants to merge 1 commit intodevfrom
dependabot/npm_and_yarn/explorer/frontend/dev/next-i18next-16.0.4

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 29, 2026

Bumps next-i18next from 15.4.3 to 16.0.4.

Release notes

Sourced from next-i18next's releases.

v16.0.4

  • TypeScript compatibility with i18next v26 — fixed type error in Pages Router createConfig where i18next v26's readonly preload type was incompatible with the internal config type

v16.0.3

  • New hideDefaultLocale option (App Router) — when enabled, the default language is served without a URL prefix (/about instead of /en/about). Non-default locales keep their prefix (/de/about). Explicit default-locale paths (/en/about) are automatically redirected to the clean URL. Works with basePath too. #2338

v16.0.2

  • Serverless/Vercel: better error when public/locales/ is not available at runtime — the default filesystem backend now catches read failures and shows a clear error message explaining the serverless limitation with a resourceLoader code example #2337
  • partialBundledLanguages + resources — when both resources and partialBundledLanguages: true are provided, the default backend is now correctly kept so it can load additional namespaces not included in the pre-loaded resources

v16.0.1

  • App Router: config.resources now works on the serverresources was typed and documented but ignored at runtime by initServerI18next / getT. The resource backend is now skipped when resources is provided, and the pre-loaded translations are passed directly to i18next.init(). #2336

v16.0.0

BREAKING CHANGES

  • Import paths changed for Pages Router: next-i18nextnext-i18next/pages, next-i18next/serverSideTranslationsnext-i18next/pages/serverSideTranslations
  • Root export is now App Router: The default next-i18next import now exports App Router utilities (defineConfig, normalizeConfig, I18nConfig). Pages Router users must update to next-i18next/pages.
  • Removed i18next-fs-backend dependency: Pages Router server-side loading now uses i18next-resources-to-backend with fs.readFileSync internally. No change needed for users — the behavior is identical.

New Features

  • App Router support — first-class support for Next.js App Router with Server Components and Client Components
    • getT(ns?, options?) — async translation function for Server Components, layouts, and generateMetadata. Returns namespace-typed { t, i18n, lng }.
    • useT(ns?, options?) — translation hook for Client Components. Reads language from [lng] or [locale] URL params automatically.
    • I18nProvider — client-side provider for hydrating server-loaded translations. Supports custom backends via use prop.
    • initServerI18next(config) — one-time server configuration setup
    • getResources(i18n, namespaces?) — extract loaded resources for client hydration
    • generateI18nStaticParams() — helper for generateStaticParams
  • Proxy support (Next.js 16+)createProxy() from next-i18next/proxy for the new proxy.ts file convention. createMiddleware() from next-i18next/middleware remains available for Next.js 14/15.
    • Edge-safe language detection (cookie → Accept-Language → fallback)
    • Locale-in-path routing with automatic redirects
    • Custom header for Server Component language detection
  • basePath option — scope the proxy to a URL prefix (e.g., /app-router) for mixed App Router + Pages Router setups
  • No-locale-path modelocaleInPath: false for cookie-based language without URL prefixes. Use useChangeLanguage() hook for language switching.
  • defineConfig() — type-safe configuration helper
  • Custom backend support — pass any i18next backend plugin (http-backend, locize-backend, chained-backend) via the use config option. The default resource loader is skipped automatically when a custom backend is provided.
  • resourceLoader option — custom async loader function (lng, ns) => Promise<object> for dynamic imports or custom loading logic
  • Server-side singleton caching — translations loaded once and reused across requests. Custom backends benefit from this — no re-fetching per request.
  • nonExplicitSupportedLngs — match 'en' to 'en-US' etc. in language detection

Pages Router

  • All existing v15 APIs preserved under next-i18next/pages and next-i18next/pages/serverSideTranslations
  • appWithTranslation, useTranslation, Trans, serverSideTranslations — unchanged behavior
  • Defensive .filter(Boolean) on config.use arrays to handle CJS/ESM interop edge cases with Turbopack
Changelog

Sourced from next-i18next's changelog.

16.0.4

  • TypeScript compatibility with i18next v26 — fixed type error in Pages Router createConfig where i18next v26's readonly preload type was incompatible with the internal config type

16.0.3

  • New hideDefaultLocale option (App Router) — when enabled, the default language is served without a URL prefix (/about instead of /en/about). Non-default locales keep their prefix (/de/about). Explicit default-locale paths (/en/about) are automatically redirected to the clean URL. Works with basePath too. #2338

16.0.2

  • Serverless/Vercel: better error when public/locales/ is not available at runtime — the default filesystem backend now catches read failures and shows a clear error message explaining the serverless limitation with a resourceLoader code example #2337
  • partialBundledLanguages + resources — when both resources and partialBundledLanguages: true are provided, the default backend is now correctly kept so it can load additional namespaces not included in the pre-loaded resources

16.0.1

  • App Router: config.resources now works on the serverresources was typed and documented but ignored at runtime by initServerI18next / getT. The resource backend is now skipped when resources is provided, and the pre-loaded translations are passed directly to i18next.init(). #2336

16.0.0

BREAKING CHANGES

  • Import paths changed for Pages Router: next-i18nextnext-i18next/pages, next-i18next/serverSideTranslationsnext-i18next/pages/serverSideTranslations
  • Root export is now App Router: The default next-i18next import now exports App Router utilities (defineConfig, normalizeConfig, I18nConfig). Pages Router users must update to next-i18next/pages.
  • Removed i18next-fs-backend dependency: Pages Router server-side loading now uses i18next-resources-to-backend with fs.readFileSync internally. No change needed for users — the behavior is identical.

New Features

  • App Router support — first-class support for Next.js App Router with Server Components and Client Components
    • getT(ns?, options?) — async translation function for Server Components, layouts, and generateMetadata. Returns namespace-typed { t, i18n, lng }.
    • useT(ns?, options?) — translation hook for Client Components. Reads language from [lng] or [locale] URL params automatically.
    • I18nProvider — client-side provider for hydrating server-loaded translations. Supports custom backends via use prop.
    • initServerI18next(config) — one-time server configuration setup
    • getResources(i18n, namespaces?) — extract loaded resources for client hydration
    • generateI18nStaticParams() — helper for generateStaticParams
  • Proxy support (Next.js 16+)createProxy() from next-i18next/proxy for the new proxy.ts file convention. createMiddleware() from next-i18next/middleware remains available for Next.js 14/15.
    • Edge-safe language detection (cookie → Accept-Language → fallback)
    • Locale-in-path routing with automatic redirects
    • Custom header for Server Component language detection
  • basePath option — scope the proxy to a URL prefix (e.g., /app-router) for mixed App Router + Pages Router setups
  • No-locale-path modelocaleInPath: false for cookie-based language without URL prefixes. Use useChangeLanguage() hook for language switching.
  • defineConfig() — type-safe configuration helper
  • Custom backend support — pass any i18next backend plugin (http-backend, locize-backend, chained-backend) via the use config option. The default resource loader is skipped automatically when a custom backend is provided.
  • resourceLoader option — custom async loader function (lng, ns) => Promise<object> for dynamic imports or custom loading logic
  • Server-side singleton caching — translations loaded once and reused across requests. Custom backends benefit from this — no re-fetching per request.
  • nonExplicitSupportedLngs — match 'en' to 'en-US' etc. in language detection

Pages Router

  • All existing v15 APIs preserved under next-i18next/pages and next-i18next/pages/serverSideTranslations
  • appWithTranslation, useTranslation, Trans, serverSideTranslations — unchanged behavior

... (truncated)

Commits
Install script changes

This version modifies prepare script that runs during installation. Review the package contents before updating.


Bumps [next-i18next](https://github.com/i18next/next-i18next) from 15.4.3 to 16.0.4.
- [Release notes](https://github.com/i18next/next-i18next/releases)
- [Changelog](https://github.com/i18next/next-i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/next-i18next@v15.4.3...v16.0.4)

---
updated-dependencies:
- dependency-name: next-i18next
  dependency-version: 16.0.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/explorer/frontend/dev/next-i18next-16.0.4 branch from eb5180f to 8d89f59 Compare March 30, 2026 15:34
@Wayonb Wayonb closed this Mar 30, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 30, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/explorer/frontend/dev/next-i18next-16.0.4 branch March 30, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant